﻿using IceCS.DesignPattern.Core.MVCPattern.StudentManage.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace IceCS.DesignPattern.Core.MVCPattern.StudentManage.Views
{
    public class StudentView
    {
        public void ShowList(List<Student> students)
        {
            var sb = new StringBuilder();
            students.ForEach(student =>
            {
                sb.Append($"Roll No : {student.RollNo} , Name : {student.Name}")
                .AppendLine();
            });
            Console.WriteLine(sb.ToString());
        }

        public void ShowDetails(Student student)
        {
            Console.WriteLine($"Roll No : {student.RollNo} , Name : {student.Name}");
        }
    }
}
